Hello,
is there a possibility to automatically move older emails (7days+) to another folder (not archive mailbox).
There is a service account receiving couple emails everyday, and we wanna move older emails to another mailbox folder automatically (without Outook running).
I cant find a server-side rule which can be applied.
There is a little posibility to use EWSMail module within powershell. But, its script based, isnt supported, could cause problems when migrating to another version of Exchange.. and it also doesnt support custom folder "Inbox/Old" - only predefined default folders.
Get-EWSMailMessage -Mailbox acc@domain.com -folder Inbox | ?{$_.sent -gt (get-date).adddays(-7)} | Move-EWSMailMessage -TargetFolder "JunkEMail"
Any ideas?
- Edited by Mekac 1 hour 16 minutes ago